const api = require('./api/api')
const util = require('./utils/js/util')
App({
  onLaunch() {
    
  },
  async login() {
    const code = await util.login()
    const res = await api.login({ code, inviteCode: '' })
    console.log(res);
    this.globalData.userInfo = res
  },
  globalData: {
    userInfo: null,
    location: {
      lat: '',
      lng: '',
      city: '',
      district: '',
      province: '',
    }
  }
})
